package com.atguigu.controller;

import com.atguigu.pojo.School;
import com.atguigu.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 小可乐$ on 2024/9/3$ 20:46$
 * description:
 */
@RestController
@RequestMapping("school")
public class DockerController {
    @Autowired
    private SchoolService service;
    @GetMapping("list")
    public List<School> list(){
        return service.list();
    }
}
